Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

294
Vistas
Javascript remove Ampersand "&" from the url and go the new url at the same time

I have seen examples on how to remove &amp and replace with & in the url in Javascript. However, I don't get how to replace characters in the url and then use the url at the same time. Javascript is not my strong suit so please forgive me. I have tried the following below and it took me to http://flowline/&amp. What am I doing wrong? How do I achieve my end result in Javascript?

   window.location = '/index.php?name=raider&do=see&ext=account&action=processed';
   window.location.replace('&','&')
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Put it into a variable first:

let url = '/index.php?name=raider&do=see&ext=account&action=processed';
window.location = url.replaceAll("&", "&");
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda